
module.exports = {
  /*
  ** Headers of the page
  */
  head: {
    title: 'nuxt-cms',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '通用模板' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },
  /*
  ** Customize the progress bar color
  */
  loading: { color: '#3B8070' },
  serverMiddleware: [
    '~/api_server/index.js'
  ],
  buildModules: [
    '@nuxtjs/router'
  ],
  router: {
    middleware: 'md',
  },
  plugins: [
    { src: '~/plugins/antd.js', ssr: true }
  ],
  build: {
    extractCSS: { allChunks: true },
  },
}
